lib_LTLIBRARIES = libhaggle.la
libhaggle_la_SOURCES = dataobject.c ipc.c attribute.c debug.c node.c base64.c interface.c platform.c sha1.c metadata.c metadata_xml.c

libhaggle_includedir = $(includedir)/libhaggle
libhaggle_include_HEADERS = \
	include/libhaggle/haggle.h \
	include/libhaggle/attribute.h \
	include/libhaggle/dataobject.h \
	include/libhaggle/debug.h \
	include/libhaggle/error.h \
	include/libhaggle/exports.h \
	include/libhaggle/haggle.h \
	include/libhaggle/interface.h \
	include/libhaggle/ipc.h \
	include/libhaggle/list.h \
	include/libhaggle/node.h \
	include/libhaggle/platform.h

noinst_HEADERS = base64.h sha1.h sha1_private.h metadata.h metadata_xml.h

EXTRA_DIST = Android.mk Doxyfile.in

libhaggle_la_LDFLAGS =-lpthread -lxml2 
libhaggle_la_CFLAGS =-std=gnu99
libhaggle_la_CPPFLAGS =$(XML_CPPFLAGS) -Iinclude


if JAVA_BINDINGS
# Descend into subdirectories if we have Java bindings enabled
SUBDIRS = . jni # build the current directory first
endif

if HAVE_EXTRACTOR
libhaggle_la_LDFLAGS += -lextractor
endif

clean-local:
	rm -f *~
